package com.avengers.mobile.testing;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;





import com.avengers.mobile.layer.rest.UsuarioRest;


@Transactional
public class UsuarioTesting extends AbstractBaseUnitTest {

	
	
	@Autowired
	UsuarioRest restUsuario;

	@Test
	public void test() {		
		//testingRestfindUser();	
		testingValidaUser();
	
		
	}
	
	public void testingRestfindUser(){
		
		try {		
			System.out.println(restUsuario.findUser(1).getEntity());		
			} catch (Exception e) {			
				e.printStackTrace();
			}
	}
	
	
	public void testingValidaUser(){
		
		try {		
			System.out.println(restUsuario.ValidateUser("jramirez","123").getEntity());		
			} catch (Exception e) {			
				e.printStackTrace();
			}
	}


}
